From: David Woodhouse Date: Tue, 27 Jan 2009 10:50:36 +0000 (+1100) Subject: solos: Reject non-AAL5 connections.... for now X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~20253^2~298^2~24 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=b28a4b9a38b9d75caceb4f554bfdbb7a413b2ad0;p=linux-4.9.git solos: Reject non-AAL5 connections.... for now Signed-off-by: David Woodhouse --- diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index c289b6251c19..b500f00e184c 100644 --- a/drivers/atm/solos-pci.c +++ b/drivers/atm/solos-pci.c @@ -732,6 +732,12 @@ static int popen(struct atm_vcc *vcc) struct sk_buff *skb; struct pkt_hdr *header; + if (vcc->qos.aal != ATM_AAL5) { + dev_warn(&card->dev->dev, "Unsupported ATM type %d\n", + vcc->qos.aal); + return -EINVAL; + } + skb = alloc_skb(sizeof(*header), GFP_ATOMIC); if (!skb && net_ratelimit()) { dev_warn(&card->dev->dev, "Failed to allocate sk_buff in popen()\n");